home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 2.0 - Programmer's Utilities Power Pack
/
Delphi 2.0 Programmer's Utilities Power Pack.iso
/
e_to_l
/
grfrm11
/
show1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-15
|
1KB
|
65 lines
unit Show1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, StdCtrls, Buttons, Show2, GrayForm;
type
TForm1 = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit6: TEdit;
Memo1: TMemo;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Bevel1: TBevel;
procedure BitBtn1Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
GrayedForm(SELF);
Form2.ShowModal;
UnGrayedForm(SELF); { don't forget !!! }
end;
procedure TForm1.BitBtn2Click(Sender: TObject);
var i : integer;
begin
Form2.Show; { first this ! }
GrayedForm(SELF); { now this ! }
for i := 1 to 1000 do
begin
{ do something }
Form2.Label1.caption := inttostr(i);
Form2.Label1.Update;
end;
Form2.Hide;
UnGrayedForm(SELF); { don't forget !!! }
end;
end.